package com.sugar.subscribe.course.module.business.controller.app.coachcomment.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Schema(description = "APP - 评论新增/修改 Request VO")
@Data
public class AppCoachCommentSaveReqVO {

    @Schema(description = "教练ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8255")
    @NotNull(message = "教练不能为空")
    private Long coachId;

    @Schema(description = "订单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8255")
    private Long orderId;

    @Schema(description = "评论内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "评论内容不能为空")
    private String content;

    @Schema(description = "评论图片")
    private List<String> images;

    @Schema(description = "评分", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "评分不能为空")
    @DecimalMin(value = "0", message = "评分不能低于 0")
    @DecimalMax(value = "5", message = "评分不能高于 5")
    private BigDecimal score;
}